package org.example.product.service.impl;

import org.example.product.dao.SkuAttributeDao;
import org.example.product.service.SkuAttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author 小杰_cc
 * @version 1.0
 */
@Service("skuAttributeService")
public class SkuAttributeServiceImpl implements SkuAttributeService {

    @Autowired
    private SkuAttributeDao skuAttributeDao;

    @Override
    public boolean isSkuAttrByAttrIds(List<Long> ids) {
        return skuAttributeDao.countSkuAttrByAttrIds(ids)>0;
    }
}